<template>
	<view class="page">
		<view class="cell-item">
			<view class="left-box">
				采购单编号
			</view>
			<view class="right-box">
				gfdsakhgjkdshjgkhsdk
			</view>
		</view>
		<view class="cell-item">
			<view class="left-box">
				供应商
			</view>
			<view class="right-box">
				未来奇迹人扫福卡哈哈
			</view>
		</view>
		<view class="return-box">
			<view class="return-title">
				退货物料
			</view>
			<view class="remark-text">
				214456464
			</view>
			<view class="product-item">
				<view class="left-box">
					<image class="img" src="/static/image/img_icon.png" mode="aspectFit"></image>
				</view>
				<view class="right-box">
					<view class="item-box">
						WL-2145642132123131321321
					</view>
					<view class="item-box">
						<view class="left-text">
							提购数：10.000
						</view>
						<view class="right-text">
							退货数量：
						</view>
					</view>
					<view class="item-box">
							单位：件
					</view>
				</view>
				<view class="asoulte-box">
					<view class="text">
						批次编号
					</view>
					<view class="button" @click="getscanCode">
						扫码批次
					</view>
				</view>
			</view>
		</view>
		<view class="cell-item">
			<view class="left-box">
				备注：
			</view>
		</view>
		<view class="cell-item">
			<view class="left-box">
				批次展示
			</view>
		</view>
		<view class="cell-item address">
			<view class="left-box">
				地址信息
			</view>
			<view class="right-box">
				<image class="icon" src="/static/image/more_right_icon.png" mode="aspectFit"></image>
			</view>
		</view>
		<view class="cell-item remark">
			<view class="left-box">
				备注
			</view>
			<view class="right-box">
				<input class="remark-input" type="text" value="" />
			</view>
		</view>
		<view class="confirm-button">
			申请退货
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			getscanCode:function(){
				uni.scanCode({
					success: function (res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
					}
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page{
		width: 100%;
		min-height: 100vh;
		background-color: #f6f6f6;
	}
	.cell-item{
		width: 100%;
		display: flex;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 0 20rpx;
		font-size: 28rpx;
		height: 80rpx;
		line-height: 80rpx;
		background-color: white;
		border-bottom: 1px solid #f0f0f0;
		.left-box{
			color: #878787;
		}
	}
	.return-box{
		background-color: white;
		margin-top: 20rpx;
		.return-title{
			position: relative;
			font-size: 30rpx;
			line-height: 80rpx;
			padding-left:20rpx;
			border-bottom: 1px solid #f0f0f0;
			background-color: white;
		}
		.return-title::before{
			content:'';
			position: absolute;
			left:10rpx;
			top: 28rpx;
			width: 5rpx;
			height:30rpx;
			background-color: #30a875;
		}
		
		.product-item{
			display: flex;
			padding: 0 20rpx;
			font-size: 28rpx;
			padding-bottom: 20rpx;
			position: relative;
			border-bottom: 1px solid #f0f0f0;
			.left-box{
				background-color: #eeeeee;
				width: 150rpx;
				height:150rpx;
				.img{
					display: block;
					margin:20%;
					width: 60%;
					height: 60%;
				}
			}
			.right-box{
				width: calc(100% - 150rpx);
				box-sizing: border-box;
				padding-left: 20rpx;
				color: #9a9a9a;
				
				.item-box{
					display: flex;
					line-height: 50rpx;
					justify-content: space-between;
				}
			}
			.asoulte-box{
				position: absolute;
				display: flex;
				bottom: 20rpx;
				right: 30rpx;
				font-size: 30rpx;
				.text{
					color: #939393;
					margin-right: 30rpx;
				}
				.button{
					background-color: #f6f6f6;
					padding: 0 10rpx;
				}
			}
		}
	}
	.address{
		margin:20rpx 0;
		.right-box{
			.icon{
				width: 40rpx;
				height: 40rpx;
				display: block;
				margin: 20rpx 0;
			}
		}
	}
	.remark{
		justify-content:initial;
		
		.right-box{
			flex: 1;
			.remark-input{
				width: calc(100% - 20rpx);
				font-size:30rpx;
				margin-left:20rpx;
				line-height:80rpx;
				height: 80rpx;
			}
		}
	}
	.confirm-button{
		color: white;
		text-align: center;
		width: calc(100% - 40rpx);
		background-color: #4169e1;
		font-size: 30rpx;
		line-height: 80rpx;
		border-radius: 10rpx;
		position: fixed;
		bottom: 40rpx;
		left: 20rpx;
	}
</style>
